import qs from 'qs';
import { network } from '@/utils';

import { logisCenter } from '../../../../../config/Apis';

export async function queryPayexpList(params: any) {
  return network.get(logisCenter.payOrder_list, { params });
}

export async function queryPayexpCount(params: any) {
  return network.get(logisCenter.payOrder_count, { params });
}

export async function exportPayexp(params: any) {
  window.location.href = `${logisCenter.payOrder_export}?${qs.stringify(params)}`;
}
